package com.mq.colony;

import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @author ytj
 * @date 2024/1/17
 */
@Configuration
public class ColonyConfig {

    @Bean
    public TopicExchange exchanger(){
        return new TopicExchange(ColonyMessage.EXCHANGE,true,false);
    }
}
